//
//  IndexRecord.h
//  SimulacraDB
//
//  Created by Andre Cohen on 8/15/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Record.h"
#import "RID.h"

@interface IndexRecord : NSObject <NSCoding> {
	RID	*rid;
}
@property RID *rid;

+ (id)createWithRID:(RID *)rid;
+ (IndexRecord *)createFromRecord:(Record *)record;

- (Record *)toRecordOfType:(Record *)prototype;

- (NSString *)description;

- (BOOL)lessThan:(IndexRecord *)record;
- (BOOL)greaterThan:(IndexRecord *)record;
- (BOOL)equalTo:(IndexRecord *)record;

@end
